<?php
/**
 * Created by PhpStorm.
 * Time: 下午5:58
 */?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
    <title>细菌质谱分类列表</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <script language="JavaScript"> var base_url = '<?php echo base_url()?>'; </script>

    <link href="<?php echo base_url()?>css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url()?>css/bootstrap.min.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/jquery.js"></script>

    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.min.js"></script>
    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.js"></script>

</head>
<script>
    function validateForm(){
        if (window.confirm("是否确认删除")) {
            return true;
        }
        return false;
    }
</script>
<div class="container navigation">

    <div class="row">
        <div class="col-md-8">
            <h1>细菌质谱分类鉴定数据库</h1>
        </div>
    </div>
</div>
<body style="position: relative; background-color: white" >
<div class="container navigation">
    <div class="row">
        <div class="col-md-7">
            <ul class="nav nav-pills">
                <li class="active"><a href="<?php echo site_url()?>">首页</a></li>
                
                <li><a href="<?php echo site_url('c_front/')?>">细菌质谱</a></li>
                <li><a href="<?php echo site_url('c_specimen/')?>">细菌样本</a></li>
            </ul>
        </div>
        <div class="col-xs-3">
            <form action="<?php echo site_url('c_front/getPost/')?>" target="_blank" method="post">
                <input class="placeholder" id="s" name="keywords" value=""  autocomplete="off">
        </div>
        <div class="col-xs-1">
            <input style="width: 80px;height: 30px;background: black ;color: white" class="btn btn-default" type=submit name="select" value="搜索"/>
            </form>
        </div>
        <ri><button  data-toggle="modal" data-target="#myModal">
                管理员登录
            </button></ri>
        <!-- 模态框（Modal） -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel">
                            管理员登录
                        </h4>
                    </div>
                    <div class="modal-body">
                        <form  class="form-horizontal" action="<?php echo site_url('c_login/signin')?>" method="post" >
                            ID：<br>
                            <input id="input" type="text" name="admin_name" />
                            <br/>Password：<br>
                            <input id="input" type="password" name="admin_password" />
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                        </button>
                        <input class="btn btn-primary" type=submit name="submit" value="登录"/>

                        <input type="hidden" name="act" value="signin" />
                        </form>
                    </div>
                </div>
            </div>
        </div>


    </div>
</div>

<div id="main-tabs" class="container navigation" style="text-align:center;" align="center">

    <h4 style="text-align:left;">细菌质谱分类鉴定列表</h4>
    <br/>
    <!-- 菜单体 -->
    <!-- 内容 -->
    <form action="<?php echo site_url('c_data/toghter/')?>" method="post">
    <ul id="myTab" class="nav nav-tabs" style="text-align:center;" align="center">
        <li class="active" >
            <a href="#home" data-toggle="tab">
                基本信息
            </a>
        </li>


    </ul>
    <div id="myTabContent" class="tab-content" style="text-align:center;" align="center">
        <div class="tab-pane fade in active" id="home">
            <table cellpadding="3" cellspacing="0" id="listTable" class="table table-striped"  align="center">
                <thead>
                <tr class="x-grid3-header" style="text-align:center">
                    <th>
                        <div class="x-grid3-hd-inner " style="text-align:center">序号</div></th>
                    <th>
                        <div class="x-grid3-hd-inner " style="text-align:center">菌株名称</div></th>
                    <th>
                        <div class="x-grid3-hd-inner " style="text-align:center">拉丁学名</div></th>
                    <th>
                        <div class="x-grid3-hd-inner " style="text-align:center">菌株编号</div></th>
                    <th>
                        <div class="x-grid3-hd-inner" style="text-align:center">详情</div></th>



                </tr>
                </thead>
                <tbody>
                <?php
                foreach ($image as $key=>$value)
                {
                    ?>
                    <tr class="x-grid3-row " style="text-align:center">
                        <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo 15*($page-1)+$key+1; ?></div></td>
                        <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_name'] ?></div></td>
                        <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_Latin_name'] ?></div></td>
                        <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_data'] ?></div></td>

                        <td ><div class="x-grid3-cell-inner "style="text-align:center">
                                <a href='<?php echo site_url('c_front_bacteria/queryUserById/'.$image[$key]['image_id'])?>' style="text-decoration:none" alt='详情' title='详情'>

                                    详情
                                </a>
                            </div></td>


                    </tr>
                    <?php
                }
                ?>


                </tbody></table>
        </form>
        </div>
<!--     </form>-->
<!--        <form action="--><?php //echo site_url('c_data/a/')?><!--" method="post" name="asp">-->
<!--            　　　　　　复选框1:<input type="checkbox" name="mycheckbox[]" value="1" />-->
<!--            　　　　　　复选框2:<input type="checkbox" name="mycheckbox[]" value="2" />-->
<!--            　　　　　　复选框3:<input type="checkbox" name="mycheckbox[]" value="3" />-->
<!---->
<!--            　　　　　　<input type="submit" vaue="提交"-->
<!--                         　　　　</form>-->

    </div>

    <!-- 分页显示 -->
    <!--                    --><?php // echo $i;  ?>
    <?php
    $data['total_pages'] = $total_pages;
    $data['page_first'] = $page_first;
    $data['page_prev'] = $page_prev;
    $data['total_pages'] = $total_pages;
    $data['page'] = $page;
    $data['page_next'] = $page_next;
    $data['page_last'] = $page_last;
    $data['show_start'] = $show_start;
    $data['show_end'] = $show_end;
    $data['total_rows'] = $total_rows;
    $this->load->view('pagination_low', $data);
    ?>

    <div class="row" style="background-color: #0A9CD8;font-size: 25px">
        <div align="center" style=" text-align: center"><h6 align="center" style="text-align: center;color: #0A9CD8;"> </h6></div>
    </div>
    <!-- /分页显示 -->
</div><!-- /内容 -->
<!-- /菜单体 -->
</body>
</html>


